/*
 * @Author: mofan 1358526162@qq.com
 * @Date: 2023-06-01 19:48:22
 * @LastEditors: mofan 1358526162@qq.com
 * @LastEditTime: 2023-06-02 14:30:03
 * @FilePath: \borun-admin\src\pinia\modules\search.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { defineStore } from 'pinia'

export const useSearch = defineStore('search', {
  state: () => ({
    orders: [],
    logistics: [],
  }),
  actions: {
    addOrders(data) {
      this.orders = data
    },
    addLogistics(data) {
      this.logistics = data
    },
  },
})
